package com.echat.ebluetooth.protocol.entity;

/**
 * 上报的数据包格式
 */
public class PackageData {

    private int type;

    private int length;

    private String sourceAddress;

    private String destinationAddress;

    private byte protocolVer;

    private byte dataType;

    private int packetOrder;

    private long sysTimer;

    private String ucMac;

    private int Reserve;

    private byte[] businessData;

    private int check;

    private int endByte;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getSourceAddress() {
        return sourceAddress;
    }

    public void setSourceAddress(String sourceAddress) {
        this.sourceAddress = sourceAddress;
    }

    public String getDestinationAddress() {
        return destinationAddress;
    }

    public void setDestinationAddress(String destinationAddress) {
        this.destinationAddress = destinationAddress;
    }

    public byte getProtocolVer() {
        return protocolVer;
    }

    public void setProtocolVer(byte protocolVer) {
        this.protocolVer = protocolVer;
    }

    public byte getDataType() {
        return dataType;
    }

    public void setDataType(byte dataType) {
        this.dataType = dataType;
    }

    public int getPacketOrder() {
        return packetOrder;
    }

    public void setPacketOrder(int packetOrder) {
        this.packetOrder = packetOrder;
    }

    public long getSysTimer() {
        return sysTimer;
    }

    public void setSysTimer(long sysTimer) {
        this.sysTimer = sysTimer;
    }

    public String getUcMac() {
        return ucMac;
    }

    public void setUcMac(String ucMac) {
        this.ucMac = ucMac;
    }

    public int getReserve() {
        return Reserve;
    }

    public void setReserve(int reserve) {
        Reserve = reserve;
    }

    public byte[] getBusinessData() {
        return businessData;
    }

    public void setBusinessData(byte[] businessData) {
        this.businessData = businessData;
    }

    public int getCheck() {
        return check;
    }

    public void setCheck(int check) {
        this.check = check;
    }

    public int getEndByte() {
        return endByte;
    }

    public void setEndByte(int endByte) {
        this.endByte = endByte;
    }

    @Override
    public String toString() {
        return "PackageData{" +
                "type=" + type +
                ", length=" + length +
                ", sourceAddress='" + sourceAddress + '\'' +
                ", destinationAddress='" + destinationAddress + '\'' +
                ", protocolVer=" + protocolVer +
                ", dataType=" + dataType +
                ", packetOrder=" + packetOrder +
                ", sysTimer=" + sysTimer +
                ", ucMac='" + ucMac + '\'' +
                ", Reserve=" + Reserve +
                ", businessData=" + businessData +
                ", check=" + check +
                ", endByte=" + endByte +
                '}';
    }
}
